﻿#include "mythreadone.h"

MyThreadOne::MyThreadOne(QObject *parent,UIM *puim):QThread(parent)
{
    uimPtr = puim;
}

void MyThreadOne::run()
{
    uimOpen();
}

void MyThreadOne::uimOpen(void){
    bool ok = false;
    if(uimPtr != nullptr){
        ok = uimPtr->canOpenGateWay();
    }
    emit over(ok);
}
